<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="/tinymce/4.7.4/tinymce.min.js"></script>

    <script src="/tinymce/4.7.4/vue-easy-tinymce.js"></script>
    <!--    <script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.7.4/tinymce.min.js"></script>-->

    <!--    <script src="https://cdn.jsdelivr.net/npm/vue-easy-tinymce/dist/vue-easy-tinymce.min.js"></script>-->

    <link href="/element/css/index.css" rel="stylesheet"/>
    <script src="/element/js/vue.js"></script>
    <script src="/element/js/index.js"></script>
    <script src="/element/js/axios.js"></script>
    <script src="/element/js/app.js"></script>
    <title>Title</title>
    <style>
        .main{
            padding: 0px 20% 20px 20%;
        }
        .button-group{
            padding: 5px 0% 5px 66%;
        }
        .main-title{
            padding: 20px 20% 5px 20%;
        }
    </style>
</head>

<div class="button-group">
    <div class="layui-btn-group">
        <button type="button" class="el-button el-button--primary el-button--mini" onclick="save()">保存</button>
        <button type="button" class="el-button el-button--warning el-button--mini" onclick="update()" id="update">编辑</button>
        <button type="button" class="el-button el-button--warning el-button--mini" onclick="cancelUpdate()" id="cancelUpdate" style="display: none" >取消编辑</button>
        <button type="button" class="el-button el-button--danger el-button--mini">删除</button>
    </div>
</div>
<hr>
<div class="main-title">
    <div class="el-form-item is-required el-form-item--medium titile">
        <label  class="el-form-item__label" style="width: 100px;">
            标题
        </label>
        <div class="el-form-item__content" style="margin-left: 100px;">
            <div class="el-input el-input--medium el-input--suffix" style="width: 100%;">
                <input type="text" autocomplete="off" placeholder="请输入流程标题" id="processTitle" class="el-input__inner">
            </div>
        </div>
    </div>
</div>
<@FormModel fromId=fromId>
<input type="hidden" id="id" value="${dataId}">
<input type="hidden" id="processModelId" value="${fromId}">
<input type="hidden" id="bindid" value="">
<input type="hidden" id="processid" value="">


    <#if result.processdefid ??>
        <input type="hidden" id="processdefid" value="${result.processdefid}">
    </#if>
    <#if result.tableName ??>
        <input type="hidden" id="tableName" value="${result.tableName}">
    </#if>

    <#if result ??>
        ${result.formhtml}
    </#if>
</@FormModel>
</body>
</html>